package lion.dev.net;

import org.apache.commons.lang.StringUtils;

/**
 * @author lion
 * @mail hl_0074@sina.com
 * @date 2011-8-4
 */
public class IP {

	private static final String UNKNOW_AREA = "未知地区";
	private static final String UNKNOW_POSITON = "位置未知";

	private String startIP = "";
	private String endIP = "";
	private String area = UNKNOW_AREA;
	private String position = UNKNOW_POSITON;

	public String getStartIP() {

		return startIP;
	}

	public void setStartIP(String startIP) {

		this.startIP = startIP;
	}

	public String getEndIP() {

		return endIP;
	}

	public void setEndIP(String endIP) {

		this.endIP = endIP;
	}

	public String getArea() {

		return area;
	}

	public void setArea(String area) {

		if (StringUtils.isNotBlank(area)) {
			area = area.trim();
		}
		this.area = area;
	}

	public String getPosition() {

		return position;
	}

	public void setPosition(String position) {

		if (StringUtils.isNotBlank(position)) {
			position = position.trim();
		}
		this.position = position;
	}

}
